<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head> 
        <link rel = "stylesheet" type = "text/css" href = "css/default.css"/>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
        <LINK rel="shortcut icon" href="imagens/favicon.png"/>
        <title>JBS DirfWeb</title>
    </h:head>

    <ui:composition template="/administracao.xhtml">  
        <ui:define name="conteudo">  
            <f:view>
                <h:body>
                    <h:form id="formUpload" >

                        <p:growl autoUpdate="true" showDetail="true"/>

                        <p:panel header="Upload">

                            <p:fileUpload fileUploadListener="#{uploadMB.uploadDirf}"
                                          mode="advanced" dragDropSupport="false"
                                          multiple="true" update="messages" 
                                          fileLimit="3" allowTypes="/(\.|\/)(dec|DEC|Dec)$/" />

                            <p:growl id="messages" showDetail="true" />

                        </p:panel>
                    </h:form>

                </h:body>
            </f:view>
        </ui:define>
    </ui:composition>
</html>
